//登录接口需要携带参数ts类型
export interface ILoginForm {
  account: string;
  password: string;
  captcha: string;
}

//全部返回的数据类型
export interface IResponseData {
  code: number;
  msg: string;
}

//登录返回的类型
export interface ILoginResponseData extends IResponseData {
  data: {
    token: string;
    name: string;
  };
}

//定义用户返回的类型
export interface IUserResponseData extends IResponseData {
  data: {
    roleNames: string;
    userRoles: string[];
    name: string;
    avatar: string;
  };
}

//定义用户退出返回的类型
export interface ILogoutResponseData extends IResponseData {
  data: undefined;
}
